home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ for Dummies (3rd Edition)
/
C_FD.iso
/
C__FD.EXE
/
C++ FD
/
CHAP02
/
CHAP02_1.C
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-09-02
|
310 b
|
26 lines
// Chap02_1.c
#include <ctype.h>
void upperCase(char *pS)
{
while (*pS)
{
if (islower(*pS))
{
*pS = toupper(*pS);
}
pS++;
}
}
void fn()
{
char *pString;
pString = "Davis";
upperCase(pString);
}
int main()
{
fn();
return 0;
}